home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1334 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: norconnect.no!not-for-mail
  2. From: kenneth@norconnect.no (Kenneth C. Nilsen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Screen Problem in C.
  5. Date: 18 Jan 1996 05:52:21 +0100
  6. Organization: NorConnect Internet Services AS
  7. Message-ID: <802.6591T336T1581@norconnect.no>
  8. References: <4df2lt$cq1@newsman.murdoch.edu.au> <4dhk57$se3@werple.net.au>
  9. NNTP-Posting-Host: norconnect.no
  10. X-Newsreader: THOR 2.21 (Amiga;SOUP)
  11.  
  12. >hassel@cleo.murdoch.edu.au (Martin Hasselbacher) writes:
  13. >>What I need to do is to detect if a particular screen is visible on the
  14. >>monitor.
  15.  
  16. >The screen viewport modes has a flag called VP_HIDE that tells you if it is
  17. >visable, can't remember where this is documented to be a valid way to check
  18. >though maybe I saw it in a message or sample program from CBM.  See
  19. >graphics/view.h
  20.  
  21.  
  22. Don't use this flag. Open intuition.library and check offset 60 in the base:
  23.  
  24.     move.l    IntuitionBase(pc),a6
  25.     move.l    60(a6),FrontScreen
  26.  
  27. Remember to lock intuition base first to obtain correct data.
  28.  
  29.  
  30. ---
  31. CREATIVE LINKS                       __     Kenneth C. Nilsen
  32. http://www.norconnect.no/~kenneth   /_/\    e-mail: kenneth@norconnect.no
  33. "Everything you want"               \_\/    Software & MultiMedia developer
  34.  
  35.